using System;
using System.Collections;
using System.Xml;
using InfoJetSoft.Service.Entity;
using InfoJetSoft.Service.Util;

//CID 0261 //2009.03.25 //Begin
namespace InfoJetSoft.Service.EscapeRule
{
	/// <summary>
	/// Summary description for DataFlowImportParameter.
	/// </summary>
	class ViewValidation
	{
		private string _match = null;

		public static ViewValidation parse( string match )
		{
			ViewValidation viewValidation = new ViewValidation();
			viewValidation._match = match;

			return viewValidation;
		}

		public void Execute( FormConfiguration formConfig )
		{
			if( formConfig.ValidViewButtonList == null )
			{
				formConfig.ValidViewButtonList = new ArrayList();
			}
			formConfig.ValidViewButtonList.Add( this._match );
		}

	}
}
//CID 0261 //2009.03.25 //End
